-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Use Clang's logic for adding the default IR attributes to a function #31906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@swift-ci Please test. |
@stephentyrone This is also setting the LLVM floating-point attributes to match Clang's by default, so that e.g. on Darwin x86-64 I see for a simple Swift function:
I don't know if anything in here strikes you as problematic. |
Build failed |
Build failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Thanks John!
@swift-ci Please test |
Build failed |
@compnerd Is there something special about the Windows builder that would make it not respect cross-repository testing? |
Build failed |
Yeah, the cross-repository settings are not propagated to the checkout on Windows. @shahmishal was going to look into that (at least had expressed that he was interested in doing so a while ago). |
Yes, I don't if I will be able to for few weeks. |
0bc8ec2
to
2f8ec9d
Compare
@swift-ci Please test. |
Build failed |
Build failed |
A lot of attributes are essentially default target configuration, and we should only differ when there's a good reason to. For the attributes we were already setting: - the ptrauth and target CPU/feature attributes are taken care of by Clang - I've updated the optsize/minsize attributes to the apparent intent - I've left the frame-pointer override in place for now Fixes rdar://63289339, which was caused by Swift's ptrauth IR attributes getting out of sync with Clang's.
2f8ec9d
to
4f54c75
Compare
@swift-ci Please test. |
Build failed |
Build failed |
Those all seem appropriate to me. |
A lot of attributes are essentially default target configuration, and we should only differ when there's a good reason to.
For the attributes we were already setting:
Fixes rdar://63289339, which was caused by Swift's ptrauth IR attributes getting out of sync with Clang's.